import { NetWorkConfig } from './network.config';
// import axios from 'axios';
const axios = require('axios');
// 搜索参数
export class DataCloudSearchArgs{
  constructor(){
    this.pageNum=0;
    this.pageSize=10;
  }

}

const BASE_URL = "http://47.97.65.11:8201"+'/boiler-service/infotongling/allList'
//const datacloud_URL = "http://rap2api.taobao.org/app/mock/286139/chuguan/dataToCloud"
export async function serachDataCloudList(searchArgs=new DataCloudSearchArgs()) {
  try {
    const res=await axios({
      method:'get',
      url:BASE_URL,
      params:{
        ...searchArgs
      },
      withCredentials:false      //跨域访问过程中是否携带cookie
    })
    console.log(searchArgs.pageNum+';'+searchArgs.pageSize+"uuu")
    return res;
   }
  catch (error) {
    console.error(error)
  }
}

